package com.project.bean;

import java.time.LocalDate;

/**
 * 用户实体
 */
public class UserBean {
    /**用户id*/
    private int id;
    /**用户名*/
    private String name;
    /**密码*/
    private String pwd;
    /**邮件*/
    private String email;
    /**注册日期*/
    private LocalDate registerDate = LocalDate.now();
    /**头像*/
    private String image;

    public UserBean(String name, String pwd, String email, String image) {
        this.name = name;
        this.pwd = pwd;
        this.email = email;
        this.image = image;
    }

    public UserBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDate getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(LocalDate registerDate) {
        this.registerDate = registerDate;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", registerDate=" + registerDate +
                ", image='" + image + '\'' +
                "}\n";
    }
}
